<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui"
	xmlns:pm="http://primefaces.org/mobile"
	template="/templates/mobileTemplate.xhtml">
	
	<ui:define name="content">
		<pm:view id="login">
			<pm:header title="#{msg['label.aplicacao.nome']}" />
			<pm:content>
				<div align="center">
					<h3>#{msg['botao.entrar']}</h3>
				</div>
				<h:form id="formLogin">
					<p:messages />
					<h:outputLabel for="login" value="#{msg['label.login.usuario']}" />
					<p:inputText value="#{loginMobileBean.login}" id="login" type="email" />
					<h:outputLabel for="password" value="#{msg['label.login.senha']}" />
					<p:inputText type="password" value="#{loginMobileBean.password}"
						id="password" />
					<h:outputLabel for="manterLogado" value="#{msg['label.login.manterLogado']}" />
					<pm:switch value="#{loginMobileBean.manterLogado}" id="manterLogado" 
						onLabel="#{msg['label.sim']}" offLabel="#{msg['label.nao']}" />
					<br />
					<p:commandButton value="Login" icon="check" label="#{msg['botao.entrar']}"
						action="#{loginMobileBean.login}" update="formLogin" />
				</h:form>
				<br />
				<p:separator />
				#{msg['label.naoPossuiConta']} <span> </span> <h:link outcome="pages/cadastro"> #{msg['botao.cadastre-se']}</h:link>				
			</pm:content>
		</pm:view>
	</ui:define>
</ui:composition>